import { stateThemeObj, stateMenuPathObj, stateSiteData, userInfoData } from '@/type.d'
import { useUserStore } from './modules/user'
// import { useDynamicRouting } from './modules/dynamicRouting'
import { useModelStore } from './modules/model/column'

interface gettersObj {
  [propsName: string]: any
}
const getters: gettersObj = {
  theme: {
    getThemeName: (state: stateThemeObj) => state.themeName,
  },
  selectMenuPath: {
    selectMenuPath: (state: stateMenuPathObj) => state.selectMenuPath,
  },
  siteData: {
    siteData: (state: stateSiteData) => state.siteData
  },

  userInfo: () => {
    let state: userInfoData = useUserStore()
    return state.userInfo
  },

  // getRouter: () => {
  //   let state: userInfoData = useDynamicRouting()
  //   return state.routers
  // },
  columnModelData: () => {
    let data = useModelStore()
    return data
  },

}
export default getters
